export const state={
    user:sessionStorage.getItem("user")?JSON.parse(sessionStorage.getItem("user")):[]
}
export const getters={
    user(state){
        return state.user
    }
}
export const mutations={
    changeuser(state,data){
        state.user=data
    }
}